#include <iostream>

int main()
{
	std::cout << "Enter two numbers:" << std::endl;
	int v1, v2, sum = 0;
	int lower,upper;
	
	std::cin >> v1 >> v2 ;
	std::cout<< "The sum of " << v1 <<" and "<< v2 << " is "<< v1+v2 <<"!"<< std::endl;
	
	if ( v1<=v2) {
		lower = v1;
		upper = v2;
	} else {
		lower = v2;
		upper = v1;
	}

	for ( int i = lower ; i<upper;i++)
		sum += i;

	std::cout << "The loop sum value is :"<< sum << std::endl;
	return 0;
}

